package com.itxx.homeWork.extends1;

public class WashingMachine extends ElectricalAppliances {
    //电机类型
    private String type;
    //洗涤容量
    private String capacity;

    public WashingMachine() {
    }

    public WashingMachine(String brand, String model, String color, double price, String type, String capacity) {
        super(brand, model, color, price);
        this.type = type;
        this.capacity = capacity;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCapacity() {
        return capacity;
    }

    public void setCapacity(String capacity) {
        this.capacity = capacity;
    }

    public void show() {
        System.out.println("洗衣机的品牌是" + getBrand() + " 型号是:" + getModel() + " 颜色是:" + getColor() + " 售价是:" + getPrice() + " 电机类型:" + type + " 洗涤容量:" + capacity);
    }
}
